package route

import (
	controllers "04demo-gin-gorm/controller"
	"github.com/gin-gonic/gin"
)

func InitRouter() *gin.Engine {
	router := gin.Default()

	//测试-controller
	router.GET("/test/list", controllers.ListTest)
	router.POST("/test/create", controllers.CreateTest)
	router.POST("/test/update", controllers.UpdateTest)
	router.POST("/test/delete", controllers.DeleteTest)
	return router
}
